#include "counter.h"

Counter::Counter(int value): m_value(value)
{
}

void Counter::setValue(int value)
{
    if(m_value != value)
    {
        int oldvalue = m_value;
        m_value = value;
        emit valueChanged(oldvalue, m_value, this->objectName());
    }
}
